package org.jeecg.modules.waybill.api;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.waybill.entity.WlhyFreightSettlement;
import org.jeecg.modules.waybill.service.IWlhyFreightSettlementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;

/**
* @Description: 运费结算
* @Author: jeecg-boot
* @Date:   2024-04-17
* @Version: V1.0
*/
@Api(tags="运费结算")
@RestController
@RequestMapping("/fwaybill-api/wlhyFreightSettlement")
@Slf4j
public class WlhyFreightSettlementApi extends JeecgController<WlhyFreightSettlement, IWlhyFreightSettlementService> {
   @Autowired
   private IWlhyFreightSettlementService wlhyFreightSettlementService;


   /**
    *   添加
    *
    * @param wlhyFreightSettlement
    * @return
    */
   @AutoLog(value = "运费结算-添加")
   @ApiOperation(value="运费结算-添加", notes="运费结算-添加")
   @PostMapping(value = "/addFreightSettlement")
   public Result<String> addFreightSettlement(@RequestBody WlhyFreightSettlement wlhyFreightSettlement) {
       wlhyFreightSettlementService.save(wlhyFreightSettlement);
       return Result.OK("添加成功！");
   }



}
